<?php
defined( 'BASEPATH' ) or exit( 'No direct script access allowed' );
class Api_model extends MY_Model
{
    function get_list()
    {
        $this->_db->select( $this->_table, '`id`,`description`,`uri`' );
        $this->_db->where( '`enable`=1 and `deleted`=0' );
        $this->_db->order( '`sort` desc,`uri`' );
        return $this->_db->fetch_all();
    }
}